package com.iraeta.entity.basic;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 海康的区域表
 * </p>
 *
 * @author chenbin
 * @since 2024-01-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hik_region")
public class HikRegion implements Serializable {

    private static final long serialVersionUID = 1L;

    public HikRegion() {
    }

    public HikRegion(String name, String indexcode, String parentindexcode, Integer sort) {
        this.name = name;
        this.indexcode = indexcode;
        this.parentindexcode = parentindexcode;
        this.sort = sort;
    }

    /**
     * Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 区域名称
     */
    private String name;

    /**
     * 编码
     */
    private String indexcode;

    /**
     * 父区域编码
     */
    private String parentindexcode;

    /**
     * 排序
     */
    private Integer sort;
}
